package com.unicom.si.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class WeiController {

    @RequestMapping("/wei/add")
    public @ResponseBody Map<String, String> get() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("key","value");

        return map;
    }

    @RequestMapping("/getCode")
    public @ResponseBody Map<String, String> getCode() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("key","123456");

        return map;
    }
}
